<?php
//
//	file: includes/aucp/class_visit.php
//	begin: 30/04/2007
//	$Author: christopher $
//	$Revision: 29 $
//	$Date: 2008-07-19 15:59:35 +0000 (Sat, 19 Jul 2008) $
//	license: http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
//
//	description: loaded for last visit

if (!defined('IN_PHPBB'))
{
	die("Hacking attempt");
}

// definitions
if ( !defined('VISIT_CURRENT_VERSION') )
{
	define('VISIT_CURRENT_VERSION', '1.0.0');
}

// login or install
if ( defined('IN_LOGIN') || defined('IN_INSTALL') )
{
	return;
}

// run install?
check_install('mod_aucp_visit', VISIT_CURRENT_VERSION);

// not installed
if ( !$config->data['mod_aucp_visit'] )
{
	return;
}

// version
class visit_version
{
	function read(&$data)
	{
		$data[] = array('app_name' => 'AUCP Last Visit', 'app_desc' => '', 'app_marker' => 'mod_aucp_visit', 'app_author' => 'impleri', 'app_author_url' => 'http://impleri.net/', 'app_server' => 'mods.impleri.net', 'app_file' => '/download/versions.dta', 'app_protocol' => 'native', 'app_page' => 'http://mods.impleri.net/download.php');
	}
}

// plugs
$config->set_plug_ins('mod_aucp_visit', array(
	'memberlist' => array(
		'layer' => 'includes/aucp/visit_plugs',
		'object' => 'visit_members',
	),
	'page_header' => array(
		'layer' => 'includes/aucp/visit_plugs',
		'object' => 'visit_header',
	'profile' => array(
		'layer' => 'includes/aucp/visit_plugs',
		'object' => 'visit_profile',
	),
	'class_versions' => array(
		'object' => 'visit_version',
	),
));
?>